import { createSSRApp } from 'vue';

import App from './App.vue';
import api from '@/api/index.js';
import 'default-passive-events';

export function createApp () {
  const app = createSSRApp(App);
  // 页面使用 示例：$api.login
  app.config.globalProperties.$api = api;
  return {
    app
  };
}
